package com.lej.dataservice.club.bean.main.my

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * 用户编辑页面数据
 * Created by Administrator on 2020-06-20
 */

@Parcelize
data class MyUserInfoAll(
    val id: Int = -1,
    val nick: String = "",
    val avatar: String = "",
    val authentication: Int = -1,
    val phone: String = "",
    val tencent_id: String? = null,
    val tencent_user_sig: String? = null,
) : Parcelable {
    fun authenticationState() = when (authentication) {
        0 -> "未实名认证 >"
        1 -> "认证审核中 >"
        2 -> "已认证"
        else -> "认证未通过 >"
    }

    fun isAuthentication() = authentication == 2

}
